package com.netty.future;

import io.netty.channel.DefaultEventLoopGroup;
import io.netty.channel.EventLoopGroup;
import io.netty.util.concurrent.Future;

/**
 * @author xl-9527
 * @since 2025/8/2
 **/
public class NettyFutureDemo {

    private final EventLoopGroup eventLoopGroup = new DefaultEventLoopGroup(1);

    public Future<String> getMsg() {
        return eventLoopGroup.next().submit(() -> "hello netty future xl-9527");
    }
}
